package com.example.lightenergypolymerize.util;

/**
 * 全局变量
 */
public class AppVariable {
    //话题点赞Topic名称
    public static final String DISCUSS_SUPPORT_TOPIC = "DISCUSS_SUPPORT_TOPIC";
    public static final int PAGE_SIZE = 3;
    //分布式锁key
    public static String getModelLockKey(Long uid, int model, int type) {
        return "MODEL_LOCK_KEY_" + uid + "_" + model + "_" + type;
    }

    //缓存key
    public static String getListCacheKey(Long uid, int model, int type) {
        return "LIST_CACHE_KEY_" + uid + "_" + model + "_" + type;
    }
}
